import request from '@/utils/request'

// 获取耗材类别树形结构
export function getConsumablesCategoryTree(data) {
  return request.get('/system/materialCategory/list' ,{ params: data })
}

// 获取耗材类别列表
export function getConsumablesCategoryList(data) {
  return request.get('/system/materialCategory/allList',{ params: data })
}

// 添加耗材类别
export function addConsumablesCategory(data) {
  return request.post('/system/materialCategory', data)
}

// 删除耗材类别
export function deleteConsumablesCategory(id) {
  return request.delete(`/system/materialCategory/${id}`)
}

// 查找耗材类别详情
export function getConsumablesCategoryDetail(id) {
  return request.get(`/system/materialCategory/${id}`)
}

// 修改耗材类别
export function updateConsumablesCategory(data) {
  return request.put(`/system/materialCategory`,data)
}





